<?php
session_start();
if(!session_is_registered("LoginOK"))//bien sessionLoginOK chua ton tai
 	{
 		session_register("LoginOK");
 		$_SESSION['LoginOK'] = 0;
 	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php
function redirect($url) { 
if (!headers_sent()) 
header('location: '.$url); 
else { 
echo '<script type="text/javascript">'; 
echo 'window.location.href="'.$url.'";'; 
echo '</script>'; 
echo '<noscript>'; 
echo '<meta http-equiv="refresh" content="0;url='.$url.'" />'; 
echo '</noscript>'; 
} 
}
?>
<?php
if($_SESSION['LoginOK'] != 2){
	$_SESSION['LoginOK']=0;
	redirect("Common/logout.php");
}
?>
<body>
<table width="100%"  border="0" cellpadding="0">
  <tr>
    <td width="25%"><a href="adminimport.php">Import questions from file </a></td>
    <td width="75%">&nbsp;</td>
  </tr>
  <tr>
    <td width="25%"><a href="adminexport.php">Export questions from file </a></td>
    <td width="75%">&nbsp;</td>
  </tr>
  <tr>
    <td width="25%"><a href="adminimporthelp.php">Import questions from file </a></td>
    <td width="75%">&nbsp;</td>
  </tr>
  <tr>
    <td width="25%"><a href="index.php">Back Home </a></td>
    <td width="75%">&nbsp;</td>
  </tr>
</table>
</body>
</html>